<!--
 * @Author: your name
 * @Date: 2021-08-16 11:39:12
 * @LastEditTime: 2021-08-16 14:03:01
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \briup\3-html&css\day11\05-变形.html
-->
<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        body>div {
            width: 300px;
            height: 300px;
            background-color: pink;
            margin: 20px;
        }
        
        body>div:first-child {
            /* rotate:旋转 */
            transform: rotate(45deg, 30deg);
        }
        
        body>div:nth-child(2) {
            /* skew倾斜 两个值 一个在x轴 一个在y轴 */
            transform: skew(45deg, 20deg);
        }
        
        body>div:nth-child(3) {
            /* scale 缩放比例 scaleX scaleY */
            transform: scale(2, 2);
        }
        
        body>div>:nth-child(4) {
            transform: translate(100px 200px);
        }
    </style>
</head>

<body>
    <div></div>
    <div></div>
    <div></div>
    <div></div>
</body>

</html>